Skip to content

DOC: Guidance for serializing model metadata - #2435

Merged
Richard Lundeen (rlundeen2) merged 1 commit into
microsoft:mainfrom
rlundeen2:rlundeen2-message-metadata-standard
Aug 20, 2026
Merged

DOC: Guidance for serializing model metadata#2435
Richard Lundeen (rlundeen2) merged 1 commit into
microsoft:mainfrom
rlundeen2:rlundeen2-message-metadata-standard

Conversation

@rlundeen2

Copy link
Copy Markdown
Contributor

Summary

  • define where metadata belongs across PyRIT models
  • prefer explicit typed fields for stable or queried data
  • use model-owned to_metadata() and from_metadata() methods for shared metadata semantics

Uses JsonResponseConfig and MessagePiece.prompt_metadata as the reference pattern.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9b95a2c8-cdc2-4e94-9776-cbea2a2b41ff
@rlundeen2
Richard Lundeen (rlundeen2) added this pull request to the merge queue Aug 20, 2026
Merged via the queue into microsoft:main with commit d857ac4 Aug 20, 2026
54 checks passed
@rlundeen2
Richard Lundeen (rlundeen2) deleted the rlundeen2-message-metadata-standard branch August 20, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants